


#ifndef PF_COMMANDEVENT_H
#define PF_COMMANDEVENT_H

#include "lx_Export.h"
/**
 * Command Events.
 */
class LX_EXPORT PF_CommandEvent {
public:
    /**
	 * Creates a new command event that is not yet accepted.
	 *
	 * @param cmd the command that was triggered.
	 */
    PF_CommandEvent(const QString& cmd) {
        this->cmd = cmd;
		accepted = false;
    }
 
    /**
	 * @return the command that was triggered, usually by
	 * the user.
	 */
    QString getCommand() {
        return cmd;
    }

    /**
	 * Sets the event state to accepted.
	 */
	void accept() {
		accepted = true;
	}

    /**
	 * @return Whether the event was already accepted or not.
	 */
	bool isAccepted() {
		return accepted;
	}
 
protected:
    QString cmd;
	bool accepted;
};

#endif
